<template>
  <div>
    <!--自提信息弹窗-->
    <el-dialog
            :close-on-click-modal="false"
            title="司机信息"
            :visible.sync="dialogVisible4"
            width="800px">
      <el-table
              v-loading="listLoading4"
              :data="selfTakeList"
              border
              style="width: 100%">
        <el-table-column
                label="司机姓名"
                width="100"
                align="center">
          <template slot-scope="scope">
            {{scope.row.driverName}}
          </template>
        </el-table-column>
        <el-table-column  label="手机号" width="100" align="center">
          <template slot-scope="scope">
            {{scope.row.driverMobile}}
          </template>
        </el-table-column>
        <el-table-column
                label="车牌号"
                width="100"
                align="center">
          <template slot-scope="scope">
            {{scope.row.driverCardNo}}
          </template>
        </el-table-column>
        <el-table-column
                label="提货时间"
                width="100"
                align="center">
          <template slot-scope="scope">
            {{scope.row.takeTime}}
          </template>
        </el-table-column>
        <el-table-column
                align="center"
                label="提货数量"
                width="100">
          <template slot-scope="scope">
            {{scope.row.takeNum}}
          </template>
        </el-table-column>
        <el-table-column
                label="备注">
          <template slot-scope="scope">
            {{scope.row.takeRemark}}
          </template>
        </el-table-column>
        <el-table-column
                prop="chargeUserName"
                label="负责人"
                width="100"
                align="center">
        </el-table-column>
      </el-table>
    </el-dialog>

  </div>
</template>
<script>
import "@/utils/jQuery.print"
import {selfTakeInfo} from '@/api/company'
import warehouseInfo from "./warehouseInfo.vue"
import {getAddressList,getUserOption,getCustomerOption} from '@/api/partner'
import {needTakePurchaseGoods} from "../../../api/partner";
const defaultSendForm={
  "ogId" : null,          //合同商品记录ID
  "warehouseName"   : null,    //仓库ID
  "contactName"   : "",   //联系人
  "contactMobile" : "",   //联系人手机号
  "takeAddress"   : "",    //提货地址
  "takeTime"      : "",    //提货时间
  "takeNum"       : null,    //提货数量
  "takeRemark"    : ""   , //备注(提货注意事项)
  isSure:1,
  planSendType:'',
  purchaseOrderId:'',  //关联采购合同
  goodsWeight:'',
  isHasTray:false
};
export default {
  name: "printdischarging",
  data(){

    return {
      dialogVisible4:false,
      selfTakeList:[],
      listLoading4:false,
      allTakeNum:'',

    }
  },



  filters:{

  },

  created() {

  },

  methods:{
    //显示自提信息
    showDialog4(item){
      this.dialogVisible4 = true;
      this.listLoading4 = true;
      selfTakeInfo({orderId:item.orderId}).then((res)=>{
        this.selfTakeList = res;
        this.listLoading4 = false
      }).catch(()=>{
        this.listLoading4 = false
      })
    },

  },
}
</script>

<style scoped lang="scss">

</style>
